# test = ("a","b","c","a","c") ，统计元祖中每个元素出现的次数把最终的结果保存到列表中，例如[('a',1),('b',3),('c',5)]
test = ("a", "b", "c", "a", "c")
test_dict = {}
for i in test:
    if i in test_dict:
        test_dict[i] += 1 # 统计次数+1
    else:
        test_dict[i] = 1
test_count_list = [(k, v) for k, v in test_dict.items()]
print(test_count_list)